﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace WebApplication1.DDD.Models.Entity.Common
{
    public class nfinal_note:NFinal.Struct
    {
		public System.String table_name;
		public System.String field_name;
		public System.String field_note;
		#region 从get列表初始化实体类
		public static bool TryParse(NFinal.NameValueCollection get,out nfinal_note par)
		{
			par=new nfinal_note();
			try
			{
						par.table_name=get["table_name"];
						par.field_name=get["field_name"];
						par.field_note=get["field_note"];
			}
			catch
			{
				return false;
			}
			return true;
		}
		#endregion
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"table_name\":");
					tw.Write("\"");
					tw.Write(table_name==null?"null":table_name);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"field_name\":");
					tw.Write("\"");
					tw.Write(field_name==null?"null":field_name);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"field_note\":");
					tw.Write("\"");
					tw.Write(field_note==null?"null":field_note);
					tw.Write("\"");
			tw.Write("}");
		}
		#endregion
    }
}
